Range

Function

This API is used to get parameter range for AI > Setup > Multi-Target-Type Recognition page.

Note:

The Range provides reference information for client UI input limits and API request limits. When sending Get and Set requests, the parameters must be strictly limited according to the Range, otherwise the request may be rejected by the device.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…” WIFI_CH1x”
The number of channels depends on the capability of the device.
string arrayEach array bit represents a channel with a string.
DVR/NVR need.
IPC only uses CH1
page_type“ChannelConfig”,
“AlarmConfig”
stringData used to distinguish between the channel configuration page and the alarm configuration page

Sample:

POST /API/AI/Setup/PVD/Range HTTP/1.1
{
    "version": "1.0",
    "data": {"page_type": "ChannelConfig"}
}

Response Message

Parameter Description

Table 2

ParameterRangeTypeDescription
channel_infoJSON objectSingle Channel Information JSON show as follow Table x
page_type“ChannelConfig”,
“AarmConfig”
stringThe data used to distinguish between the channel configuration page and the alarm configuration page is only needed when setting
channel_maxintMaximum number of channels

Table x

ParameterRangeTypeDescription
CH1Json ObjectJSON show as followTable 3
...Json Object
IP_CH1Json Object
...Json Object
WIFI_CH1Json Object
...Json Object

Table 3

ParameterRangeTypeDescription
mix_ruleboolIf true is set, fields exist in both the custom rule box and the full-screen
sensitivity0-100intsensitivity
snap_mode"Default"
"RealTimeMode"
"IntervalMode"
stringScreenshot mode,
IntervalMode JSON show as followTable 4
min_pixel64-1080intMinimum pixel value
max_pixel320-1080intMaximum pixel value
detection_type_ex"Off"
"Person"
"Bicycle"
"Car"
"Motorcycle"
"Airplane"
"Bus"
"Train"
"Truck"
"Boat"
"Traffic Light"
"Fire Hydrant"
"Stop Sign"
"Parking Meter"
"Parking Meter"
"Bench"
"Bird"
"Dog"
"Horse"
"Sheep"
"Cow"
"Elephant"
"Bear"
"Zebra"
"Giraffe"
"Backpack"
"Umbrella"
"Handbag"
"Tie"
"Suitcase"
"Frisbee"
"Skis"
"Snowboard"
"Sports Ball"
"Kite"
"Baseball Bat"
"Baseball Glove"
"Skateboard"
"Surfboard"
"Tennis Racket"
"Bottle"
"Wine Glass"
"Cup"
"Fork"
"Knife"
"Spoon"
"Bowl"
"Banana"
"Apple"
"Sandwich"
"Orange"
"Broccoli"
"Carrot"
"Hot Dog"
"Pizza"
"Donut"
"Cake"
"Chair"
"Couch"
"Potted Plant"
"Bed"
"Dining Table"
"Toilet"
"TV"
"Laptop"
"Mouse"
"Remote"
"Keyboard"
"Cell Phone"
"Microwave"
"Oven"
"Toaster"
"Sink"
"Refrigerator"
"Book"
"Clock"
"Vase"
"Scissors"
"Teddy Bear"
"Hair Drier"
"Toothbrush"
arraydetection type
iva_lines0 not draw lines
1 draw lines
intPreview and play back whether lines will appear
rule_infoObjectInformation JSON show as followTable 5
mutual_exclusion"Intrusion"
"Region Entrance"
"Region Exiting"
"LCD"
json arrayThe set of mutually exclusive functions currently enabled,Note: If there is a mutual exclusion function that is already enabled, it is included in the Get. If it is not enabled or there is no mutual exclusion, it is not necessary to pass this field
ptz_operation_supportboolSupports ptz operation
detection_modeStaticMode,MotionModestringdetection type
tracking_linkboolTracking linkage switch
rule_draw_numbermin_len:1
max_len:48
stringFor Web Select a rule box for display
default_timeout1-120000intSession timeout (range usage)

Table 4

ParameterRangeTypeDescription
snap_num"1"
"2"
"3"
"Unlimited"
stringScreenshot count
snap_frequencyintScreenshot interval, unit s/pic

Table 5

ParameterRangeTypeDescription
rule_number1ObjectRule number 1,Information JSON show as followTable 6

表格 6

参数范围类型说明
detection_range"FullScreen"
"Customize"
stringdetection range
rule_switchtrue, falsebool/* One byte per channel represents up to 4 rules, 0- off, 1- Use */ (IPC Smart Generation only)
sensitivity0-100intsensitivity
detection_modeStaticMode,MotionModestringdetection type
detection_type_ex"Off"
"Person"
"Bicycle"
"Car"
"Motorcycle"
"Airplane"
"Bus"
"Train"
"Truck"
"Boat"
"Traffic Light"
"Fire Hydrant"
"Stop Sign"
"Parking Meter"
"Parking Meter"
"Bench"
"Bird"
"Dog"
"Horse"
"Sheep"
"Cow"
"Elephant"
"Bear"
"Zebra"
"Giraffe"
"Backpack"
"Umbrella"
"Handbag"
"Tie"
"Suitcase"
"Frisbee"
"Skis"
"Snowboard"
"Sports Ball"
"Kite"
"Baseball Bat"
"Baseball Glove"
"Skateboard"
"Surfboard"
"Tennis Racket"
"Bottle"
"Wine Glass"
"Cup"
"Fork"
"Knife"
"Spoon"
"Bowl"
"Banana"
"Apple"
"Sandwich"
"Orange"
"Broccoli"
"Carrot"
"Hot Dog"
"Pizza"
"Donut"
"Cake"
"Chair"
"Couch"
"Potted Plant"
"Bed"
"Dining Table"
"Toilet"
"TV"
"Laptop"
"Mouse"
"Remote"
"Keyboard"
"Cell Phone"
"Microwave"
"Oven"
"Toaster"
"Sink"
"Refrigerator"
"Book"
"Clock"
"Vase"
"Scissors"
"Teddy Bear"
"Hair Drier"
"Toothbrush"
arraydetection type
rule_type"Normal"string/* One byte per channel for up to 4 rules, 0- off, 1- Use / (IPC Smart Generation Only) / One byte per channel for up to 4 - Rule type, 0- Regular mode, 1- Guest Mode/Other mode */ (IPC Smart Generation only)
rule_rectObjectrectangle,Information JSON show as followTable 7
point_num[min:max]arrayNumber of points drawn in the area, minimum 3 points (min), maximum 8 points (max)

Table 7

ParameterRangeTypeDescription
x10-704shortx1 coordinate point
y10-576shorty1 coordinate point
x20-704shortx2 coordinate point
y20-576shorty2 coordinate point
x30-704shortx3 coordinate point
y30-576shorty3 coordinate point
x40-704shortx4 coordinate point
y40-576shorty4 coordinate point
x50-704shortx5 coordinate point
y50-576shorty5 coordinate point
x60-704shortx6 coordinate point
y60-576shorty6 coordinate point
x70-704shortx7 coordinate point
y70-576shorty7 coordinate point
x80-704shortx8 coordinate point
y80-576shorty8 coordinate point

Tips:

The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "default_timeout": 30000,
        "channel_info": {
            "type": "object",
            "items": {"CH1": {
                "type": "object",
                "items": {
                    "mix_rule": {"type": "bool"},
                    "sensitivity": {
                        "type": "int32",
                        "mode": "r",
                        "min": 1,
                        "max": 100,
                        "default_value": 60
                    },
                    "snap_mode": {
                        "type": "string",
                        "items": [
                            "Default",
                            "RealTimeMode",
                            "IntervalMode"
                        ]
                    },
                    "snap_num": {
                        "type": "string",
                        "items": [
                            "1",
                            "2",
                            "3",
                            "Unlimited"
                        ]
                    },
                    "snap_frequency": {
                        "type": "int32",
                        "mode": "r",
                        "min": 1,
                        "max": 255,
                        "default_value": 2
                    },
                    "max_pixel": {
                        "type": "int32",
                        "mode": "r",
                        "min": 320,
                        "max": 1080,
                        "default_value": 320
                    },
                    "min_pixel": {
                        "type": "int32",
                        "mode": "r",
                        "min": 64,
                        "max": 1080,
                        "default_value": 64
                    },
                    "detection_mode": {
                        "type": "string",
                        "items": [
                            "HybridMode",
                            "MotionMode"
                        ]
                    },
                    "detection_type_ex": {
                        "type": "array",
                        "min_size": 1,
                        "max_size": 80,
                        "items": {
                            "type": "string",
                            "items": [
                                "Person",
                                "Bicycle",
                                "Car",
                                "Motorcycle",
                                "Airplane",
                                "Bus",
                                "Train",
                                "Truck",
                                "Boat",
                                "Traffic Light",
                                "Fire Hydrant",
                                "Stop Sign",
                                "Parking Meter",
                                "Bench",
                                "Bird",
                                "Cat",
                                "Dog",
                                "Horse",
                                "Sheep",
                                "Cow",
                                "Elephant",
                                "Bear",
                                "Zebra",
                                "Giraffe",
                                "Backpack",
                                "Umbrella",
                                "Handbag",
                                "Tie",
                                "Suitcase",
                                "Frisbee",
                                "Skis",
                                "Snowboard",
                                "Sports Ball",
                                "Kite",
                                "Baseball Bat",
                                "Baseball Glove",
                                "Skateboard",
                                "Surfboard",
                                "Tennis Racket",
                                "Bottle",
                                "Wine Glass",
                                "Cup",
                                "Fork",
                                "Knife",
                                "Spoon",
                                "Bowl",
                                "Banana",
                                "Apple",
                                "Sandwich",
                                "Orange",
                                "Broccoli",
                                "Carrot",
                                "Hot Dog",
                                "Pizza",
                                "Donut",
                                "Cake",
                                "Chair",
                                "Couch",
                                "Potted Plant",
                                "Bed",
                                "Dining Table",
                                "Toilet",
                                "TV",
                                "Laptop",
                                "Mouse",
                                "Remote",
                                "Keyboard",
                                "Cell Phone",
                                "Microwave",
                                "Oven",
                                "Toaster",
                                "Sink",
                                "Refrigerator",
                                "Book",
                                "Clock",
                                "Vase",
                                "Scissors",
                                "Teddy Bear",
                                "Hair Drier",
                                "Toothbrush"
                            ]
                        }
                    },
                    "rule_info": {
                        "type": "object",
                        "items": {
                            "rule_number1": {
                                "type": "object",
                                "items": {
                                    "detection_range": {
                                        "type": "string",
                                        "items": [
                                            "FullScreen",
                                            "UserDefined"
                                        ]
                                    },
                                    "rule_switch": {"type": "bool"},
                                    "sensitivity": {
                                        "type": "int32",
                                        "mode": "r",
                                        "min": 1,
                                        "max": 100,
                                        "default_value": 60
                                    },
                                    "detection_mode": {
                                        "type": "string",
                                        "items": [
                                            "HybridMode",
                                            "MotionMode"
                                        ]
                                    },
                                    "detection_type_ex": {
                                        "type": "array",
                                        "min_size": 1,
                                        "max_size": 80,
                                        "items": {
                                            "type": "string",
                                            "items": [
                                                "Person",
                                                "Bicycle",
                                                "Car",
                                                "Motorcycle",
                                                "Airplane",
                                                "Bus",
                                                "Train",
                                                "Truck",
                                                "Boat",
                                                "Traffic Light",
                                                "Fire Hydrant",
                                                "Stop Sign",
                                                "Parking Meter",
                                                "Bench",
                                                "Bird",
                                                "Cat",
                                                "Dog",
                                                "Horse",
                                                "Sheep",
                                                "Cow",
                                                "Elephant",
                                                "Bear",
                                                "Zebra",
                                                "Giraffe",
                                                "Backpack",
                                                "Umbrella",
                                                "Handbag",
                                                "Tie",
                                                "Suitcase",
                                                "Frisbee",
                                                "Skis",
                                                "Snowboard",
                                                "Sports Ball",
                                                "Kite",
                                                "Baseball Bat",
                                                "Baseball Glove",
                                                "Skateboard",
                                                "Surfboard",
                                                "Tennis Racket",
                                                "Bottle",
                                                "Wine Glass",
                                                "Cup",
                                                "Fork",
                                                "Knife",
                                                "Spoon",
                                                "Bowl",
                                                "Banana",
                                                "Apple",
                                                "Sandwich",
                                                "Orange",
                                                "Broccoli",
                                                "Carrot",
                                                "Hot Dog",
                                                "Pizza",
                                                "Donut",
                                                "Cake",
                                                "Chair",
                                                "Couch",
                                                "Potted Plant",
                                                "Bed",
                                                "Dining Table",
                                                "Toilet",
                                                "TV",
                                                "Laptop",
                                                "Mouse",
                                                "Remote",
                                                "Keyboard",
                                                "Cell Phone",
                                                "Microwave",
                                                "Oven",
                                                "Toaster",
                                                "Sink",
                                                "Refrigerator",
                                                "Book",
                                                "Clock",
                                                "Vase",
                                                "Scissors",
                                                "Teddy Bear",
                                                "Hair Drier",
                                                "Toothbrush"
                                            ]
                                        }
                                    },
                                    "point_num": {
                                        "type": "array",
                                        "size": 2,
                                        "items": []
                                    },
                                    "rule_rect": {
                                        "type": "object",
                                        "items": {
                                            "x1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "y1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            }
                                        }
                                    }
                                }
                            },
                            "rule_number2": {
                                "type": "object",
                                "items": {
                                    "detection_range": {
                                        "type": "string",
                                        "items": [
                                            "FullScreen",
                                            "UserDefined"
                                        ]
                                    },
                                    "rule_switch": {"type": "bool"},
                                    "sensitivity": {
                                        "type": "int32",
                                        "mode": "r",
                                        "min": 1,
                                        "max": 100,
                                        "default_value": 60
                                    },
                                    "detection_mode": {
                                        "type": "string",
                                        "items": [
                                            "HybridMode",
                                            "MotionMode"
                                        ]
                                    },
                                    "detection_type_ex": {
                                        "type": "array",
                                        "min_size": 1,
                                        "max_size": 80,
                                        "items": {
                                            "type": "string",
                                            "items": [
                                                "Person",
                                                "Bicycle",
                                                "Car",
                                                "Motorcycle",
                                                "Airplane",
                                                "Bus",
                                                "Train",
                                                "Truck",
                                                "Boat",
                                                "Traffic Light",
                                                "Fire Hydrant",
                                                "Stop Sign",
                                                "Parking Meter",
                                                "Bench",
                                                "Bird",
                                                "Cat",
                                                "Dog",
                                                "Horse",
                                                "Sheep",
                                                "Cow",
                                                "Elephant",
                                                "Bear",
                                                "Zebra",
                                                "Giraffe",
                                                "Backpack",
                                                "Umbrella",
                                                "Handbag",
                                                "Tie",
                                                "Suitcase",
                                                "Frisbee",
                                                "Skis",
                                                "Snowboard",
                                                "Sports Ball",
                                                "Kite",
                                                "Baseball Bat",
                                                "Baseball Glove",
                                                "Skateboard",
                                                "Surfboard",
                                                "Tennis Racket",
                                                "Bottle",
                                                "Wine Glass",
                                                "Cup",
                                                "Fork",
                                                "Knife",
                                                "Spoon",
                                                "Bowl",
                                                "Banana",
                                                "Apple",
                                                "Sandwich",
                                                "Orange",
                                                "Broccoli",
                                                "Carrot",
                                                "Hot Dog",
                                                "Pizza",
                                                "Donut",
                                                "Cake",
                                                "Chair",
                                                "Couch",
                                                "Potted Plant",
                                                "Bed",
                                                "Dining Table",
                                                "Toilet",
                                                "TV",
                                                "Laptop",
                                                "Mouse",
                                                "Remote",
                                                "Keyboard",
                                                "Cell Phone",
                                                "Microwave",
                                                "Oven",
                                                "Toaster",
                                                "Sink",
                                                "Refrigerator",
                                                "Book",
                                                "Clock",
                                                "Vase",
                                                "Scissors",
                                                "Teddy Bear",
                                                "Hair Drier",
                                                "Toothbrush"
                                            ]
                                        }
                                    },
                                    "point_num": {
                                        "type": "array",
                                        "size": 2,
                                        "items": []
                                    },
                                    "rule_rect": {
                                        "type": "object",
                                        "items": {
                                            "x1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "y1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            }
                                        }
                                    }
                                }
                            },
                            "rule_number3": {
                                "type": "object",
                                "items": {
                                    "detection_range": {
                                        "type": "string",
                                        "items": [
                                            "FullScreen",
                                            "UserDefined"
                                        ]
                                    },
                                    "rule_switch": {"type": "bool"},
                                    "sensitivity": {
                                        "type": "int32",
                                        "mode": "r",
                                        "min": 1,
                                        "max": 100,
                                        "default_value": 60
                                    },
                                    "detection_mode": {
                                        "type": "string",
                                        "items": [
                                            "HybridMode",
                                            "MotionMode"
                                        ]
                                    },
                                    "detection_type_ex": {
                                        "type": "array",
                                        "min_size": 1,
                                        "max_size": 80,
                                        "items": {
                                            "type": "string",
                                            "items": [
                                                "Person",
                                                "Bicycle",
                                                "Car",
                                                "Motorcycle",
                                                "Airplane",
                                                "Bus",
                                                "Train",
                                                "Truck",
                                                "Boat",
                                                "Traffic Light",
                                                "Fire Hydrant",
                                                "Stop Sign",
                                                "Parking Meter",
                                                "Bench",
                                                "Bird",
                                                "Cat",
                                                "Dog",
                                                "Horse",
                                                "Sheep",
                                                "Cow",
                                                "Elephant",
                                                "Bear",
                                                "Zebra",
                                                "Giraffe",
                                                "Backpack",
                                                "Umbrella",
                                                "Handbag",
                                                "Tie",
                                                "Suitcase",
                                                "Frisbee",
                                                "Skis",
                                                "Snowboard",
                                                "Sports Ball",
                                                "Kite",
                                                "Baseball Bat",
                                                "Baseball Glove",
                                                "Skateboard",
                                                "Surfboard",
                                                "Tennis Racket",
                                                "Bottle",
                                                "Wine Glass",
                                                "Cup",
                                                "Fork",
                                                "Knife",
                                                "Spoon",
                                                "Bowl",
                                                "Banana",
                                                "Apple",
                                                "Sandwich",
                                                "Orange",
                                                "Broccoli",
                                                "Carrot",
                                                "Hot Dog",
                                                "Pizza",
                                                "Donut",
                                                "Cake",
                                                "Chair",
                                                "Couch",
                                                "Potted Plant",
                                                "Bed",
                                                "Dining Table",
                                                "Toilet",
                                                "TV",
                                                "Laptop",
                                                "Mouse",
                                                "Remote",
                                                "Keyboard",
                                                "Cell Phone",
                                                "Microwave",
                                                "Oven",
                                                "Toaster",
                                                "Sink",
                                                "Refrigerator",
                                                "Book",
                                                "Clock",
                                                "Vase",
                                                "Scissors",
                                                "Teddy Bear",
                                                "Hair Drier",
                                                "Toothbrush"
                                            ]
                                        }
                                    },
                                    "point_num": {
                                        "type": "array",
                                        "size": 2,
                                        "items": []
                                    },
                                    "rule_rect": {
                                        "type": "object",
                                        "items": {
                                            "x1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "y1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            }
                                        }
                                    }
                                }
                            },
                            "rule_number4": {
                                "type": "object",
                                "items": {
                                    "detection_range": {
                                        "type": "string",
                                        "items": [
                                            "FullScreen",
                                            "UserDefined"
                                        ]
                                    },
                                    "rule_switch": {"type": "bool"},
                                    "sensitivity": {
                                        "type": "int32",
                                        "mode": "r",
                                        "min": 1,
                                        "max": 100,
                                        "default_value": 60
                                    },
                                    "detection_mode": {
                                        "type": "string",
                                        "items": [
                                            "HybridMode",
                                            "MotionMode"
                                        ]
                                    },
                                    "detection_type_ex": {
                                        "type": "array",
                                        "min_size": 1,
                                        "max_size": 80,
                                        "items": {
                                            "type": "string",
                                            "items": [
                                                "Person",
                                                "Bicycle",
                                                "Car",
                                                "Motorcycle",
                                                "Airplane",
                                                "Bus",
                                                "Train",
                                                "Truck",
                                                "Boat",
                                                "Traffic Light",
                                                "Fire Hydrant",
                                                "Stop Sign",
                                                "Parking Meter",
                                                "Bench",
                                                "Bird",
                                                "Cat",
                                                "Dog",
                                                "Horse",
                                                "Sheep",
                                                "Cow",
                                                "Elephant",
                                                "Bear",
                                                "Zebra",
                                                "Giraffe",
                                                "Backpack",
                                                "Umbrella",
                                                "Handbag",
                                                "Tie",
                                                "Suitcase",
                                                "Frisbee",
                                                "Skis",
                                                "Snowboard",
                                                "Sports Ball",
                                                "Kite",
                                                "Baseball Bat",
                                                "Baseball Glove",
                                                "Skateboard",
                                                "Surfboard",
                                                "Tennis Racket",
                                                "Bottle",
                                                "Wine Glass",
                                                "Cup",
                                                "Fork",
                                                "Knife",
                                                "Spoon",
                                                "Bowl",
                                                "Banana",
                                                "Apple",
                                                "Sandwich",
                                                "Orange",
                                                "Broccoli",
                                                "Carrot",
                                                "Hot Dog",
                                                "Pizza",
                                                "Donut",
                                                "Cake",
                                                "Chair",
                                                "Couch",
                                                "Potted Plant",
                                                "Bed",
                                                "Dining Table",
                                                "Toilet",
                                                "TV",
                                                "Laptop",
                                                "Mouse",
                                                "Remote",
                                                "Keyboard",
                                                "Cell Phone",
                                                "Microwave",
                                                "Oven",
                                                "Toaster",
                                                "Sink",
                                                "Refrigerator",
                                                "Book",
                                                "Clock",
                                                "Vase",
                                                "Scissors",
                                                "Teddy Bear",
                                                "Hair Drier",
                                                "Toothbrush"
                                            ]
                                        }
                                    },
                                    "point_num": {
                                        "type": "array",
                                        "size": 2,
                                        "items": []
                                    },
                                    "rule_rect": {
                                        "type": "object",
                                        "items": {
                                            "x1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "x8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 704
                                            },
                                            "y1": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y2": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y3": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y4": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y5": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y6": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y7": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            },
                                            "y8": {
                                                "type": "int32",
                                                "min": 0,
                                                "max": 576
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "rule_draw_number": {
                        "type": "string",
                        "min_len": 1,
                        "max_len": 48
                    },
                    "draw_add_btn": {
                        "type": "object",
                        "items": {"visible": {"type": "bool"}}
                    },
                    "btn_get_default_data": true
                }
            }}
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.